﻿namespace ConsoleApp3
{
    //3 查询表达式


    internal class Program
    {
        static void Main(string[] args)
        {
            List<string> fruits = new List<string> { "Apple", "Banana", "shang", "shou", "lai","shangshoulai" };

            var selectedFruits = from fruit in fruits
                                 where fruit.Length > 5
                                 orderby fruit descending
                                 select fruit;

            

            foreach (var fruit in selectedFruits)
            {
                Console.WriteLine(fruit);
            }

            
        }



    }
}